package artid.com.arttogo.bean;

import org.json.JSONArray;
import org.json.JSONObject;

import java.io.Serializable;
import java.util.ArrayList;

public class NewartDetails extends AppItem implements Serializable {
	String artist_id;
	String uid;
	String headurl;
	String realname;
	String pic_url;
	String title;
	String author;
	String cat_id;
	String size;
	String artyear;
	String detail;
	String commend_num;
	ArrayList<String> userimg;
	String is_support;
	String comment_num;
	String status;
	String organizer;
	String code;
	String imgurl;
	String fav_num;
	String sharelink;
	String imgheight;
	String scanNum;
	String is_artist;
	String artnum;
	String type;
	String create_time;
	String follow_num;
	String is_follow;
	String is_favorite;
	@Override
	public void parse(JSONObject obj) {
		if (null == obj) {
			return;
		}
		is_favorite = obj.optString("is_favorite");
		type = obj.optString("type");
		create_time = obj.optString("create_time");
		follow_num = obj.optString("follow_num");
		is_follow = obj.optString("is_follow");

		artist_id = obj.optString("artist_id");
		uid = obj.optString("uid");
		headurl = obj.optString("headurl");
		realname = obj.optString("realname");
		pic_url = obj.optString("pic_url");
		title = obj.optString("title");
		author = obj.optString("author");
		cat_id = obj.optString("cat_id");
		size = obj.optString("size");
		artyear = obj.optString("artyear");
		detail = obj.optString("detail");
		commend_num = obj.optString("commend_num");
		is_support = obj.optString("is_support");
		comment_num = obj.optString("comment_num");
		status = obj.optString("status");
		organizer = obj.optString("organizer");
		code = obj.optString("code");
		imgurl = obj.optString("imgurl");
		fav_num = obj.optString("fav_num");
		sharelink = obj.optString("sharelink");
		imgheight = obj.optString("imgheight");
		scanNum = obj.optString("scanNum");
		is_artist = obj.optString("is_artist");
		artnum = obj.optString("artnum");
		userimg = new ArrayList<String>();
		JSONArray iconArr = obj.optJSONArray("userimg");
		for (int i = 0; i < iconArr.length(); i++) {
			String str = iconArr.optString(i);
			userimg.add(str);
		}
		
	}

	public String getIs_favorite() {
		return is_favorite;
	}

	public void setIs_favorite(String is_favorite) {
		this.is_favorite = is_favorite;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getCreate_time() {
		return create_time;
	}

	public void setCreate_time(String create_time) {
		this.create_time = create_time;
	}

	public String getFollow_num() {
		return follow_num;
	}

	public void setFollow_num(String follow_num) {
		this.follow_num = follow_num;
	}

	public String getIs_follow() {
		return is_follow;
	}

	public void setIs_follow(String is_follow) {
		this.is_follow = is_follow;
	}

	public String getArtist_id() {
		return artist_id;
	}

	public void setArtist_id(String artist_id) {
		this.artist_id = artist_id;
	}

	public String getUid() {
		return uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	public String getHeadurl() {
		return headurl;
	}

	public void setHeadurl(String headurl) {
		this.headurl = headurl;
	}

	public String getRealname() {
		return realname;
	}

	public void setRealname(String realname) {
		this.realname = realname;
	}

	public String getPic_url() {
		return pic_url;
	}

	public void setPic_url(String pic_url) {
		this.pic_url = pic_url;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getCat_id() {
		return cat_id;
	}

	public void setCat_id(String cat_id) {
		this.cat_id = cat_id;
	}

	public String getSize() {
		return size;
	}

	public void setSize(String size) {
		this.size = size;
	}

	public String getArtyear() {
		return artyear;
	}

	public void setArtyear(String artyear) {
		this.artyear = artyear;
	}

	public String getDetail() {
		return detail;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}

	public String getCommend_num() {
		return commend_num;
	}

	public void setCommend_num(String commend_num) {
		this.commend_num = commend_num;
	}

	public ArrayList<String> getUserimg() {
		return userimg;
	}

	

	public String getIs_support() {
		return is_support;
	}

	public void setIs_support(String is_support) {
		this.is_support = is_support;
	}

	public String getComment_num() {
		return comment_num;
	}

	public void setComment_num(String comment_num) {
		this.comment_num = comment_num;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getOrganizer() {
		return organizer;
	}

	public void setOrganizer(String organizer) {
		this.organizer = organizer;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getImgurl() {
		return imgurl;
	}

	public void setImgurl(String imgurl) {
		this.imgurl = imgurl;
	}

	public String getFav_num() {
		return fav_num;
	}

	public void setFav_num(String fav_num) {
		this.fav_num = fav_num;
	}

	public String getSharelink() {
		return sharelink;
	}

	public void setSharelink(String sharelink) {
		this.sharelink = sharelink;
	}

	public String getImgheight() {
		return imgheight;
	}

	public void setImgheight(String imgheight) {
		this.imgheight = imgheight;
	}

	public String getScanNum() {
		return scanNum;
	}

	public void setScanNum(String scanNum) {
		this.scanNum = scanNum;
	}

	public String getIs_artist() {
		return is_artist;
	}

	public void setIs_artist(String is_artist) {
		this.is_artist = is_artist;
	}

	public String getArtnum() {
		return artnum;
	}

	public void setArtnum(String artnum) {
		this.artnum = artnum;
	}

	

}
